{% extends "navigationbar.html" %}
{% block title %}我的导航站{% endblock %}
{% block css %}
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background-color: #fadcd9;
            min-height: 100vh;
            line-height: 1.6;
            font-size: 18px;
            display: flex;
            flex-direction: column;
        }

        header {
            background: rgba(250, 220, 217, 0.9);
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            padding: 1.5rem 2rem; /* 增加内边距 */
            position: fixed;
            width: 100%;
            top: 0;
            z-index: 100;
            animation: fadeInDown 0.8s ease;
        }

        @keyframes fadeInDown {
            from {
                opacity: 0;
                transform: translateY(-20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        nav {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            font-size: 2.2rem; /* 增大logo字体 */
            font-weight: bold;
            color: #ff6b6b; /* 更改logo颜色 */
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
        }

        .container {
            max-width: 1200px;
            margin: 120px auto 0; /* 增大顶部边距 */
            padding: 20px;
            flex: 1;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
            }
            to {
                opacity: 1;
            }
        }

        .category {
            margin-bottom: 4rem; /* 增大分类块底部间距 */
        }

        .category h2 {
            color: #333;
            margin-bottom: 2rem; /* 增大标题底部间距 */
            padding-left: 20px;
            border-left: 6px solid #ff6b6b; /* 更改边框颜色 */
            font-size: 2.2rem; /* 增大分类标题字体 */
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
            animation: slideInLeft 0.8s ease;
        }

        @keyframes slideInLeft {
            from {
                opacity: 0;
                transform: translateX(-20px);
            }
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        .grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); /* 增大卡片最小宽度 */
            gap: 3rem; /* 增大卡片间距 */
            padding-bottom: 60px; /* 增大底部留白 */
        }

        .website-card {
            width: 100%;
            min-height: 220px; /* 增大卡片最小高度 */
            background: rgba(255, 255, 255, 0.9);
            border: 2px solid #ffb7c5;
            border-radius: 15px; /* 增大卡片圆角 */
            padding: 3rem; /* 增大卡片内边距 */
            transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
            cursor: pointer;
            text-decoration: none;
            color: inherit;
            display: flex;
            flex-direction: column;
            justify-content: center;
            text-align: center;
            align-items: center;
            animation: fadeInUp 0.8s ease;
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .website-card:hover {
            transform: translateY(-8px); /* 增大悬停时的位移 */
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); /* 增大悬停时的阴影 */
            background-color: #fff0f5;
        }

        .website-card h3 {
            color: #333;
            margin-bottom: 2rem; /* 增大标题底部间距 */
            font-size: 2rem; /* 增大卡片标题字体 */
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
        }

        .website-card p {
            color: #6d4c41;
            font-size: 1.4rem; /* 增大描述文字字体 */
            line-height: 1.8;
        }

        /* 新增图片样式 */
        .website-card img {
            width: 100%;
            max-width: 220px; /* 增大图片最大宽度 */
            height: auto;
            margin-bottom: 1.5rem; /* 增大图片底部间距 */
            border-radius: 10px; /* 增大图片圆角 */
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 增加图片阴影 */
        }

        @media (max-width: 768px) {
            body {
                font-size: 16px;
            }

            header {
                padding: 1rem 1.5rem;
            }

            .logo {
                font-size: 1.8rem;
            }

            .container {
                padding: 15px;
                margin-top: 100px;
            }

            .grid {
                grid-template-columns: 1fr; /* 移动端单栏布局 */
                gap: 2rem;
            }

            .website-card {
                padding: 2rem;
                min-height: 200px;
            }

            .website-card h3 {
                font-size: 1.8rem;
            }

            .website-card p {
                font-size: 1.2rem;
            }

            .website-card img {
                max-width: 200px;
            }
        }

        @media (max-width: 480px) {
            .website-card {
                min-height: 180px;
                padding: 1.5rem;
            }
        }
    </style>
{% endblock %}

{% block body %}
<div class="container">
    <div class="category">
        <div class="grid">
            <a href="piano/" class="website-card" target="_blank">
                <!-- 新增图片 -->
                <img src="https://img95.699pic.com/photo/40252/1795.jpg_wh860.jpg" alt="网页电子琴">
                <h3>网页电子琴</h3>
                <p>点击进入在线电子琴，支持键盘和鼠标演奏</p>
            </a>
        </div>
    </div>

    <div class="category">
        <div class="grid">
            <a href="snake/" class="website-card" target="_blank">
                <!-- 新增图片 -->
                <img src="https://img.ixintu.com/download/jpg/20210129/2b58e4c4884c0ece45a7868db57406ab_800_430.jpg!con" alt="贪吃蛇">
                <h3>贪吃蛇</h3>
                <p>使用上下左右操控贪吃蛇移动</p>
            </a>
        </div>
    </div>
</div>
{% endblock %}